#include <qqtdatatranslatesession.h>


QQtDataTranslateSession::QQtDataTranslateSession ( QObject* parent )
    : QObject ( parent )
{
    QUuid quuid = QUuid::createUuid();
    QString uuid = quuid.toString().left ( 9 ).mid ( 1 );
    mUuid = uuid;

    mTimer = new QTimer ( this );
    mTimer->setSingleShot ( true );
    mTimer->setInterval ( 3000 );

    mStatus = Normal;
}

QQtDataTranslateSession::~QQtDataTranslateSession() {}

QString& QQtDataTranslateSession::uuid()
{
    return mUuid;
}

QQtDataSerialization& QQtDataTranslateSession::request()
{
    return mReq;
}

QQtDataSerialization& QQtDataTranslateSession::response()
{
    return mRsp;
}

QQtDataTranslateSession::SessionStatus& QQtDataTranslateSession::status()
{
    return mStatus;
}

QTimer* QQtDataTranslateSession::timer()
{
    return mTimer;
}

void QQtDataTranslateSession::setTimerInterval ( int millscond )
{
    mTimer->setInterval ( millscond );
}

int QQtDataTranslateSession::timerInterval()
{
    return mTimer->interval();
}
